home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
programming
/
e
/
lsestuff
/
namnlös.e
< prev
next >
Wrap
Text File
|
1999-11-29
|
390b
|
26 lines
OPT MODULE
MODULE '*/leifoo/mythread'
OBJECT thread
mothertask
isrunning:INT
proctobethread
ENDOBJECT
PROC thread(proc) OF thread
self.proctobethread := proc
self.mothertask := FindTask(0)
self.isrunning := FALSE
ENDPROC
PROC start(pri=NIL, tags=NIL) OF thread
birth(self.proctobethread, pri, tags)
ENDPROC
PROC ready() OF thread IS cutstring(self.mothertask)